package hu.diploma.core.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name = "email_table")
public class Email extends BaseEntity {

	@ManyToOne
	private PersonalData personalData;

	@Column(name = "from")
	private String from;

	@Column(name = "date")
	private Date date;

	@Column(name = "subject")
	private String subject;

	public String getFrom() {
		return from;
	}

	public void setFrom(String from) {
		this.from = from;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public String getSubject() {
		return subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public void setPersonalData(PersonalData personalData) {
		this.personalData = personalData;
	}

	public PersonalData getPersonalData() {
		return personalData;
	}

}
